<!DOCTYPE html>
<html>
 {{{ html.header(out) }}}
<body>

{{{ html.navbar(out,"/web/types") }}}

<div class="container overflow-hidden">
  <div class="row gy-5"><h4>Types</h4></div>

{{{
    out([[<div class="accordion accordion-flush" id="accordionFlushExample">]])
    local fmt,i = EM.utilities.luaFormated,0
    local _,sortedDeviceTemplates = EM.getDeviceResources()
    for _,d in pairs(sortedDeviceTemplates or {}) do
       i=i+1
       out([[
        <div class="accordion-item">
         <h2 class="accordion-header" id="flush-heading%s">
           <button class="accordion-button collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#flush-collapse%s" aria-expanded="false" aria-controls="flush-collapse%s">
              %s
           </button>
         </h2>
       <div id="flush-collapse%s" class="accordion-collapse collapse" aria-labelledby="flush-heading%s" data-bs-parent="#accordionFlushExample">
      <div class="accordion-body"><pre>%s<pre></div>
      </div>
      </div>]],i,i,i,d[1],i,i,html.escape(fmt(d[2])))
    end
    out([[</div>]])
}}}

</div>

{{{ html.footer(out) }}}
</body>
</html>